package com.itheima.dao;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

public interface PermissionDao {
    @Select("select p.* from t_permission p,t_role_permission rp where rp.role_id = #{roleId} and p.id = rp.permission_id")
    public Set<Permission> findByRoleId(Integer roleId);
}
